<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Carbon\Carbon;
class DepartmentTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
	    $data=[
			'id'=>1,
		    'code'=>10001,
		    'name'=>'徐汇店',
		    'leader_id'=>1,
		    'parent_id'=>1,
		    'status'=>1,
		    'created_at' => Carbon::now(),
		    'updated_at' => Carbon::now()
	    ];
	    DB::table('department')->insert($data);
    }
}
